FROM mysql:8.0.31

ENV MYSQL_ROOT_PASSWORD=root MYSQL_DATABASE=ry-vue
ENV TZ=Asia/Shanghai
RUN ln -sf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
#拷贝mysql配置文件
COPY ./config/ /etc/mysql/
COPY quartz.sql /docker-entrypoint-initdb.d
COPY ry_20220822.sql /docker-entrypoint-initdb.d

VOLUME [ "/var/lib/mysql" ]

EXPOSE 3306